package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectInfoBO;
import com.ssm.subject.domain.bo.SubjectOptionBO;
import com.ssm.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoBOConvert {
    SubjectInfoBOConvert INSTANCE = Mappers.getMapper(SubjectInfoBOConvert.class);

    //BO 转 info
    SubjectInfo subjectInfoBoToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> subjectInfosToBos(List<SubjectInfo> subjectInfos);

    SubjectInfoBO subjectInfoToBo(SubjectInfo subjectInfo);

    //OptionBo 与 info 结合 转 infoBo
    SubjectInfoBO subjectOptionBoAndInfoToBo(SubjectInfo subjectInfo, SubjectOptionBO subjectOptionBO);
}
